using System.ComponentModel.DataAnnotations;
using Pgvector;

namespace UniversalAdmin.Domain.Entities;

public class Document : BaseEntity
{
    [Required]
    [MaxLength(255)]
    public string Title { get; set; } = string.Empty;
    
    [Required]
    public string Content { get; set; } = string.Empty;
    
    [MaxLength(255)]
    public string? Source { get; set; }
    
    public string? ErrorMessage { get; set; }
    
    public Guid? UploadedBy { get; set; }
    
    public string? Summary { get; set; }
    
    // Navigation property
    public virtual ICollection<DocumentChunk> Chunks { get; set; } = new List<DocumentChunk>();
}